import Vue from 'vue'
import Router from 'vue-router'

import Home from "@/components/tabbar/Home.vue"
import Member from "@/components/tabbar/Member.vue"
import Search from "@/components/tabbar/Search.vue"
import ShopCar from "@/components/tabbar/Shopcar.vue"
import newsList from "@/components/news/newsList.vue"
import newsInfo from "@/components/news/newsInfo.vue"
import photolist from "@/components/photos/photolist.vue"
import photoinfo from "@/components/photos/photoinfo.vue"
import goodlists from "@/components/goods/goodlists.vue"
import goodinfo from "@/components/goods/goodinfo.vue"
import gooddesc from "@/components/goods/goodsdesc.vue"
import goodscomponent from "@/components/goods/goodscomponents.vue"


Vue.use(Router)

export default new Router({
  routes: [
      {path:"/",redirect:"/home"},
      {path:"/home",component:Home},
      {path:"/member",component:Member},
      {path:"/search",component:Search},
      {path:"/shopcar",component:ShopCar},
      {path:"/home/newslist",component:newsList},
      {path:"/home/newsInfo/:id",component:newsInfo},
      {path:"/home/photoslist",component:photolist},
      {path:"/home/photoinfo/:id",component:photoinfo},
      {path:"/home/goodlists",component:goodlists},
      {name:"goodsinfo",path:"/home/goodinfo/:id",component:goodinfo},
      {name: "goodsdesc",path:"/home/goodsdesc/:id",component:gooddesc},
      {name: "goodscomment",path:"/home/goodscomponent/:id",component:goodscomponent}
  ],
  linkActiveClass:'mui-active'//覆盖默认的高亮类 router-link-active
})
